#ifndef HISTORY_H
#define HISTORY_H

#include <QWidget>
#include <QTimeEdit>
#include <QDateTime>
#include "mqtthandler.h"
#include "globalval.h"
#include "qcustomplot.h"

namespace Ui {
class History;
}

class History : public QWidget
{
    Q_OBJECT

public:
    explicit History(QWidget *parent = 0);
    ~History();
    void setupRealtimeDataDemo(QCustomPlot *customPlot);
    QTimer dataTimer;
    double temp;
    double hum;
    double stime;

private:
    Ui::History *ui;

private slots:
    void dataUpSlot(QByteArray);//接收数据并显示
    void SearchHistorySlot();
    void realtimeDataSlot();   //曲线图
    void on_checkBox_hum_clicked();
    void on_checkBox_temp_clicked();
};

#endif // HISTORY_H
